
<div class="current_location">
    <ul>
        <li><a>当前位置：</a></li>
        <li><a>分类管理</a></li>
        <li> > <a>分类列表</a></li>
    </ul>
</div>

<div class="action_bar">
    <ul>
        <li><a>操作：</a></li>
        <li>
            <a href="<?php echo $view_data['add_form_url']; ?>">新增</a>
        </li>
    </ul>
</div>


<table class="list_table">
    <thead>
    <tr>
        <th class="list_table_no">序号</th>
        <th class="list_table_id">编号（ID）</th>
        <th>名称</th>
        <th>排序</th>
        <th>状态</th>
        <th class="list_table_action">操作</th>
    </tr>
    </thead>
    <tbody>

    <?php $no = 1; ?>
    <?php foreach ($view_data['all_category_list'] as $category): ?>
        <tr>
            <td class="list_table_no"><?php echo $no; ?></td>
            <td class="list_table_id"><?php echo $category['id']; ?></td>
            <td>
                <?php
                for($i = 1; $i < $category['level']; $i++){
                    echo '&nbsp;&nbsp;';
                }
                ?>
                <?php echo $category['name']; ?>

            </td>
            <td><?php echo $category['order']; ?></td>
            <td><?php echo $category['status_desc']; ?></td>
            <td class="list_table_action">
                <a href="<?php echo $this->get_url(array('route' => 'pc_background_good_category_edit', 'id' => $category['id']), true); ?>">编辑</a><!-- | -->
            </td>
        </tr>

        <?php $no++; ?>
    <?php endforeach ?>

    </tbody>
</table>

<script type="text/javascript">

</script>
